package com.ronghui.cash.parambean;

import com.ronghui.cash.util.Validator;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class FindPasswordBean {
	@NotNull(message = "手机号不能为空")
	@Pattern(regexp = Validator.REGEX_MOBILE, message = "手机号格式错误")
	private String mobile;

	/**
	 * 验证码
	 */
	@NotNull(message = "验证码不能为空")
	@Pattern(regexp = Validator.VCODE, message = "验证码格式错误")
	private String vcode;

	@NotNull(message = "新密码不能为空")
	@Pattern(regexp = Validator.REGEX_PASSWORD, message = "新密码格式错误")
	private String newPassword;

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getVcode() {
		return vcode;
	}

	public void setVcode(String vcode) {
		this.vcode = vcode;
	}

	public String getNewPassword() {
		return newPassword;
	}

	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}

}
